$(function(){
	$('td .btn').tooltip();	
	$('.sign-off-btn').on('click',function(){
		var $this = $(this);
		var eventId = $(this).parents('tr').attr('data-event-id');
		actionConfirm({
			msg: '确定关闭报名通道吗？',
			confirm: function() {
				cAjax({
					url: '/cms/event/updateSignStatus',
					data: {
						eventId: eventId,
						signStatus: '1'
					},
					success: function(){
						$this.attr('disabled','');		
						$this.parents('td').find('[data-role="signState"]')
							.html('<span class="label label-danger">已关闭</span>');
					}
				});
			}
		});
	});
});
